package ace.module.oauth2.server.api.enums;

import ace.cmp.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
* oauth2客户端支持的认证与授权协议配置,支持本地bean与rest方式 客户端认证方式.
*
* @author Caspar
*/
@AllArgsConstructor
@Getter
public enum Oauth2RegisteredClientAuthConfigAuthenticationTypeEnum implements BaseEnum<String> {
  UNKNOWN("unknown","未知"),
  DEFAULT("default","默认"),
  USERNAME("username","账户名与密码"),
  PHONE_CODE("phone","手机验证码"),
  WX_MINI_APP_LOGIN_CODE("wx_mini_app_login_code","微信小程序登录code"),
  WX_MINI_APP_PHONE_CODE("wx_mini_app_phone_code","微信小程序手机号登录"),
  CLIENT_CREDENTIALS("client_credentials","客户端认证"),
  ;
  private final String code;
  private final String desc;
}